package ch.sfug.log.output {
	import flash.external.ExternalInterface;
	
	import ch.sfug.log.output.ILoggerOutput;	

	/**
	 * @author loop
	 */
	public class LogFirebug implements ILoggerOutput {

		public function append(txt:String):void {
			callFirebug("console.log", txt);
		}

		
		public function clear():void {
		}

		
		/**
		 * calls the firebug javascript
		 */
		private function callFirebug( func:String, para:String ):void {
			if( ExternalInterface.available ) ExternalInterface.call(func, para);
		}
	}
}
